package com.guli.order.feign;

import com.guli.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author zzb
 * @Date 2024/4/17 17:32
 * @Version 1.0
 */
@Repository
@FeignClient("product-service")
public interface ProductFeignService {
    @GetMapping("/product/skuinfo/{skuId}/weight")
    R getWeight(@PathVariable Long skuId);

    @GetMapping("product/skuinfo/spuby/{skuId}")
    R getSpuInfoBySkuId(@PathVariable Long skuId);
}
